﻿#ifndef CONCLUSIONLIST_H
#define CONCLUSIONLIST_H

#include <QtGui>
#include <QtSql>
#include "mydatamodel.h"

namespace Ui {
class conclusionList;
}

class conclusionList : public QFrame
{
    Q_OBJECT
    
public:
    explicit conclusionList(QWidget *parent = 0);
    ~conclusionList();
public slots:
    void updateList();

private:
    Ui::conclusionList *ui;
    QString getQuery();
    void fillStuff();

    myDataModel *dbModel;

    enum {
        CDB_enumber,
        CDB_date,
        CDB_org,
        CDB_post,
        CDB_name,
        CDB_equipment,
        CDB_serial,
        CDB_inventory,
        CDB_year,
        CDB_conclusion,
        CDB_who,
        CDB_printform
    };
private slots:

    void	currentRowChanged ( const QModelIndex & current, const QModelIndex & previous );



    void on_addButton_clicked();
    void on_changeButton_clicked();
    void on_delSearchButton_clicked();
    void on_searchButton_clicked();
    void on_searchEdit_returnPressed();
    void on_printButton_clicked();
};

#endif // CONCLUSIONLIST_H
